package com.twu.biblioteca.menuitem;

import com.twu.biblioteca.controller.Controller;

/**
 * Created with IntelliJ IDEA.
 * User: Thoughtworker
 * Date: 8/24/13
 * Time: 11:59 PM
 * To change this template use File | Settings | File Templates.
 */
public abstract class MenuItem {

    protected String label;
    protected Controller controller;


    public MenuItem(String label, Controller controller) {
        this.label = label;
        this.controller = controller;
    }

    public MenuItem(String label) {
        this.label = label;
    }


    public abstract void execute();

    @Override
    public String toString() {
        return label;
    }
}
